<template>
  <div class="app-wrapper">
    <RouterView />
  </div>
</template>

<style lang="scss">
.app-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

// 全局样式覆盖
.el-button {
  border-radius: 4px;
  
  &.el-button--primary {
    background: linear-gradient(135deg, #409eff 0%, #64b5f6 100%);
    border: none;
    
    &:hover {
      opacity: 0.9;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
    }
  }
  
  &.el-button--success {
    background: linear-gradient(135deg, #67c23a 0%, #95d475 100%);
    border: none;
    
    &:hover {
      opacity: 0.9;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(103, 194, 58, 0.3);
    }
  }
  
  &.el-button--warning {
    background: linear-gradient(135deg, #e6a23c 0%, #f3d19e 100%);
    border: none;
    
    &:hover {
      opacity: 0.9;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(230, 162, 60, 0.3);
    }
  }
  
  &.el-button--danger {
    background: linear-gradient(135deg, #f56c6c 0%, #fab6b6 100%);
    border: none;
    
    &:hover {
      opacity: 0.9;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(245, 108, 108, 0.3);
    }
  }
}

// 卡片样式优化
.el-card {
  border-radius: 8px !important;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease;
  
  &:hover {
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.15) !important;
  }
  
  .el-card__header {
    background-color: #f5f7fa;
    border-bottom: 1px solid #ebeef5;
    font-weight: 600;
    color: #303133;
  }
}

// 表单样式优化
.el-form {
  .el-form-item {
    margin-bottom: 24px;
    
    .el-form-item__label {
      color: #606266;
      font-weight: 500;
    }
  }
}

// 表格样式优化
.el-table {
  border-radius: 8px;
  overflow: hidden;
  
  th {
    background-color: #f5f7fa !important;
    color: #303133 !important;
    font-weight: 500;
  }
}

// 分页样式优化
.el-pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}
</style>